/**
 * 
 */
package cci.rodez.iiil.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JTextArea;

import org.jfree.chart.ChartPanel;

import cci.rodez.iiil.logger.UILogger;

/**
 * @author g.grezes
 *
 */
@SuppressWarnings("serial")
public class FrameTp1 extends JFrame {

	/**
	 * construction de la fenetre
	 */
	public FrameTp1() {
		build();
	}
	
	private void build() {
		
		this.setLayout(new BorderLayout());
		
		JTextArea textarea = new JTextArea();
		UILogger.setTextArea(textarea);
		textarea.setSize(500, 100);
		textarea.setPreferredSize(new Dimension(500,100));
		textarea.setVisible(true);		
		add(textarea, BorderLayout.PAGE_END);
	}
	
	public void addChart(ChartPanel chart) {
		add(chart, BorderLayout.CENTER);
	}
}
